package com.controller;

import com.po.Manager;
import com.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by 阳幸子 on 2018/5/7.
 */
@Controller
public class ManagerController {
    @Autowired
    private ManagerService managerService;
    @RequestMapping("/manager_register")
    public String register(@ModelAttribute Manager manager){
        managerService.register(manager);
        return "login";
    }
    @RequestMapping("/manager_index")
    public String manager_index(){
        return "/manager/manager_index";
    }
}
